home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995 February: Tool Chest / Dev.CD Feb 95 / Dev.CD Feb 95.toast / Sample Code / Snippets / Development Tools & Languages / PICTDialog / Dialogs.r < prev    next >
Encoding:
Text File  |  1992-07-15  |  1.3 KB  |  69 lines  |  [TEXT/MPS ]

  1. // Copyright (c) 1989 Apple Computer. All rights reserved.
  2.  
  3. #ifndef __TYPES.R__
  4. #include "Types.r"
  5. #endif
  6.  
  7. #ifndef __MacAppTypes__
  8. #include "MacAppTypes.r"
  9. #endif
  10.  
  11. #ifndef __ViewTypes__
  12. #include "ViewTypes.r"
  13. #endif
  14.  
  15. #if qDebug
  16. include "Debug.rsrc";
  17. #endif
  18.  
  19. include "MacApp.rsrc";
  20. include "Dialogs" 'CODE';
  21.  
  22. #define cName   4000
  23.  
  24. include "views.rsrc";            //  views 1000, 2000  
  25.  
  26. include "Defaults.rsrc"    'SIZE' (-1);                    // default = 534, 246; 384, 96
  27. include "Defaults.rsrc"    'ALRT' (phAboutApp);            // default about window
  28. include "Defaults.rsrc"    'DITL' (phAboutApp);            // default about contents
  29. include "Defaults.rsrc"    'STR#' (kDefaultCredits);    // default credits
  30.  
  31.  
  32. //======================================================================================
  33. include "Defaults.rsrc" 'cmnu' (mApple);                // default Apple menus
  34. include "Defaults.rsrc" 'cmnu' (mEdit);                // default Edit menus
  35.  
  36. resource 'cmnu' (2) {
  37.     2,
  38.     textMenuProc,
  39.     0x7FFFFBBB,
  40.     enabled,
  41.     "File",
  42.      {
  43.         "Close", noIcon, noKey, noMark, plain, cClose;
  44.         "-", noIcon, noKey, noMark, plain, nocommand;
  45.         "Quit", noIcon, "Q", noMark, plain, cQuit
  46.     }
  47. };
  48.  
  49. resource 'cmnu' (4) {
  50.     4,
  51.     textMenuProc,
  52.     0x7FFFFFFF,
  53.     enabled,
  54.     "CheckThisOut",
  55.      {
  56.         "PICTDialog…", noIcon, "N", noMark, plain, cName
  57.     }
  58. };
  59.  
  60.  
  61. resource 'MBAR' (kMBarDisplayed,
  62. #if qNames
  63. "Dialogs",
  64. #endif
  65.     purgeable) {
  66.     {mApple; 2; mEdit; 4; }
  67. };
  68.  
  69.